/**
 * jims
 */
package com.jims.master.modules.base.inquiry.dao;

import com.jims.master.common.persistence.CrudDao;
import com.jims.master.common.persistence.annotation.MyBatisDao;
import com.jims.master.modules.base.inquiry.entity.InquiryReply;
import org.apache.ibatis.annotations.Param;
import org.omg.CORBA.PUBLIC_MEMBER;

import java.util.List;


/**
 * 问诊回复DAO接口
 * @author chent
 * @version 2017-05-12
 */
@MyBatisDao
public interface InquiryReplyDao extends CrudDao<InquiryReply> {
    /**
     * 医生端问诊量
     * @param personId
     * @author chent
     * @return
     */
    public String getCountByDocId(@Param("personId")String personId);

    /**
     * 根据问诊ID医生回复集合
     * @param askId
     * @author chent
     * @return
     */
    public List<InquiryReply> getInquiryReplyList(@Param("askId")String askId);

    /**
     * 得到未读信息个数
     * @param askId
     * @author chent
     * @return
     */
    public int getStatNum(@Param("askId")String askId);

    /**
     * 修改用户已读状态
     * @param askId
     * @author chent
     * @return
     */
    public int updateState(@Param("askId")String askId);
}